<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{rendezvousmsgs['navigation.back']}" action="/jsf/rendezvous/listRendezVouss.xhtml"/>
		
			<p:panel header="#{rendezvousmsgs['rendezvous.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{rendezvousmsgs['rendezvous.rdvrendezvous.title']}:*" />
							<h:inputText id="rendezvous_rdvrendezvous" value="#{RendezVousComponent.rendezvous.rdvRendezVous}" required="true" label="rendezvous_rdvrendezvous" />
						<h:outputText value="#{rendezvousmsgs['rendezvous.rdvtiers.title']}:" />
							
							<h:selectOneMenu id="rendezvous_rdvtiers" value="#{RendezVousComponent.rendezvous.rdvTiers}" required="false" label="rendezvous_rdvtiers">
							 	<f:selectItems value="#{CaractPPComponent.loadNamePersonnne()}" />
							</h:selectOneMenu> 
						
						<h:outputText value="#{rendezvousmsgs['rendezvous.rdvspecialite.title']}:" />
							<h:inputText id="rendezvous_rdvspecialite" value="#{RendezVousComponent.rendezvous.rdvSpecialite}" required="false" label="rendezvous_rdvspecialite" />
						<h:outputText value="#{rendezvousmsgs['rendezvous.rdvdate.title']}:" />
							<p:calendar id="rendezvous_rdvdate" value="#{RendezVousComponent.rendezvous.rdvDate}" required="false"  converter="primefacesCalendarConverter" />
						<h:outputText value="#{rendezvousmsgs['rendezvous.rdvadmission.title']}:" />
							<h:inputText id="rendezvous_rdvadmission" value="#{RendezVousComponent.rendezvous.rdvAdmission}" required="false" label="rendezvous_rdvadmission" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{rendezvousmsgs['navigation.save']}" action="#{RendezVousComponent.saveRendezVous(RendezVousComponent.rendezvous)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>
			
		</h:form>
	</ui:define>
</ui:composition>